package com.zust.exception;

import com.zust.enums.ResultEnum;

/**
 * Created on 2018/3/15.
 * 项目全局自定义异常,通过ResultEnum来指定详细异常信息
 * @author Jie
 */
public class WasteRecoveryException extends RuntimeException {

    private Integer code;

    public WasteRecoveryException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }


}
